package com.snow.vpnclient.vo;

import androidx.databinding.ObservableField;

/**
 * @author liufq
 * @since 2022-11-04 10:56:01
 */
public class LoginVo {

    private final ObservableField<String> username;

    private final ObservableField<String> password;

    private final ObservableField<Boolean> isRememberPassword;

    private final ObservableField<Boolean> isAuthLogin;

    private final ObservableField<Boolean> enterpriseWechat;

    private final ObservableField<Boolean> ldap;

    private final ObservableField<Boolean> feishu;

    private final ObservableField<Boolean> dingtalk;

    private final ObservableField<Boolean> cas;

    public LoginVo() {
        this.username = new ObservableField<>();
        this.password = new ObservableField<>();
        this.isRememberPassword = new ObservableField<>(false);
        this.isAuthLogin = new ObservableField<>();
        this.enterpriseWechat = new ObservableField<>();
        this.ldap = new ObservableField<>();
        this.feishu = new ObservableField<>();
        this.dingtalk = new ObservableField<>();
        this.cas = new ObservableField<>();
    }

    public void setUsername(String username) {
        this.username.set(username);
    }

    public void setPassword(String password) {
        this.password.set(password);
    }

    public void setIsRememberPassword(Boolean isRememberPassword) {
        this.isRememberPassword.set(isRememberPassword);
    }

    public void setIsAuthLogin(Boolean isAuthLogin) {
        this.isAuthLogin.set(isAuthLogin);
    }

    public void setEnterpriseWechat(Boolean enterpriseWechat) {
        this.enterpriseWechat.set(enterpriseWechat);
    }

    public void setLdap(Boolean ldap) {
        this.ldap.set(ldap);
    }

    public void setFeishu(Boolean feishu) {
        this.feishu.set(feishu);
    }

    public void setDingtalk(Boolean dingtalk) {
        this.dingtalk.set(dingtalk);
    }

    public void setCas(Boolean cas) {
        this.cas.set(cas);
    }
}
